import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      affixTab: true,
      icon: 'lucide:area-chart',
      title: $t('mes-md.dashboard.title'),
    },
    name: 'mes-md',
    path: '/mes/md',
    children: [
      {
        meta: {
          title: $t('mes-md.dashboard.materialProductManagement'),
        },
        name: 'Mditem',
        path: '/mes/md/mditem/index',
        component: () => import('#/views/mes/md/mditem/index.vue'),
      },
      {
        meta: {
          title: $t('mes-md.dashboard.analytics'),
        },
        name: 'Itemtype',
        path: '/mes/md/itemtype/index',
        component: () => import('#/views/mes/md/itemtype/index.vue'),
      },
      {
        meta: {
          title: $t('mes-md.dashboard.analytics'),
        },
        name: 'Unitemasure',
        path: '/mes/md/unitemasure/index',
        component: () => import('#/views/mes/md/unitemasure/index.vue'),
      },
      {
        meta: {
          title: $t('mes-md.dashboard.analytics'),
        },
        name: 'Chient',
        path: '/mes/md/chient/index',
        component: () => import('#/views/mes/md/chient/index.vue'),
      },
      {
        meta: {
          title: $t('mes-md.dashboard.analytics'),
        },
        name: 'Vendor',
        path: '/mes/md/vendor/index',
        component: () => import('#/views/mes/md/vendor/index.vue'),
      },
      {
        meta: {
          title: $t('mes-md.dashboard.analytics'),
        },
        name: 'Workshop',
        path: '/mes/md/workshop/index',
        component: () => import('#/views/mes/md/workshop/index.vue'),
      },
      {
        meta: {
          title: $t('mes-md.dashboard.analytics'),
        },
        name: 'Workstation',
        path: '/mes/md/workstation/index',
        component: () => import('#/views/mes/md/workstation/index.vue'),
      },
    ],
  },
];

export default routes;
